<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body>
        <script>
            let arr1 = [30, 50, 23, 25, 18];
            console.log(arr1);
            let weiwenlong = {
                name: "韦文龙",
                age: "22",
                sex: "men",
            };
            let hs = function () {
                console.log(1);
            };
            let arr2 = [
                30,
                "srting",
                null,
                true,
                undefined,
                weiwenlong,
                hs,
                arr1,
            ];
            //数组可以装下全部数据类型，但通常不建议装不一样的数据源类型，一个数组装一个数据类
            console.log(arr2);
            console.log(arr2.length);
        </script>
    </body>
</html>
